
let initState = () => ({
  bannerList: [
    [
      {name:'空间1',id:1},
      {name:'空间2',id:2},
      {name:'空间3',id:3},
      {name:'空间4',id:4},
      {name:'空间5',id:5},
      {name:'空间6',id:6},
    ],
    [
      {name:'空间7',id:7},
      {name:'空间8',id:8},
      {name:'空间9',id:9},
      {name:'空间10',id:10},
      {name:'空间11',id:11},
      {name:'空间12',id:12},
    ],
    [
      {name:'空间13',id:13},
      {name:'空间14',id:14},
      {name:'空间15',id:15},
      {name:'空间16',id:16},
      {name:'空间17',id:17},
      {name:'空间18',id:18},
    ],
  ],
});

export default {
  namespace: 'home',
  state: { ...initState() },
  effects: {},

  reducers: {
    setState(state, action) {
      return { ...state, ...action.payload };
    },
    init(state, action) {
      return { ...initState(), ...action.payload };
    },
  },
};
